const { SyncHook } = require('tapable');
//类的构造函数可以接收一个可选 参数，参数是一个参数 名的字符串数组
let syncHook = new SyncHook(['name','age']);
//tap = document.addEventListener('click'); on
syncHook.tap("11", (name, age) => {
    console.log('11',name, age);
});
syncHook.tap("22", (name, age) => {
    console.log('22',name, age);
});
syncHook.tap("33", (name, age) => {
    console.log('33',name, age);
});
syncHook.call('zhufeng',12);